Component({
  data: {
    selected:0,
    "color": "#a9b7b7",
    "selectedColor": "#000000",
    "borderStyle": "white",
    "list": [
      {
        "pagePath": "/pages/zhuye/zhuye",
        "text": "首页",
        "iconPath": "/images/zhuye.png",
        "selectedIconPath": "/images/zhuye_blue.png"
      },
      {
        "heigher":true,
        "pagePath": "/pages/jiyibi/jiyibi",
        "text": "记一笔",
        "iconPath": "/images/jiyibi.png",
        "selectedIconPath": "/images/jiyibi.png"
      },
      {
        "pagePath": "/pages/geren/geren",
        "text": "个人",
        "iconPath": "/images/geren.png",
        "selectedIconPath": "/images/geren_blue.png"
      }
    ]
  },
  attached() {
  },
  methods: {
    switchTab(e) {
      const data = e.currentTarget.dataset
      const url = data.path
      this.setData({
        selected:data.index
      })
      wx.switchTab({url})
    }
  }
})